package com.fengye.aop.demo;

import com.fengye.aop.demo.service.account.IAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class ApoDemoApplication implements ApplicationRunner {
    
    @Autowired
    private IAccountService accountService;

    public static void main(String[] args) {
        SpringApplication.run(ApoDemoApplication.class, args);
    }
    
    @Override
    public void run(ApplicationArguments args) throws Exception {
        accountService.testAround();
        System.out.println("-------");
        accountService.noAnnotation();
    }
}
